package com.ftg.product.qiantai;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zwl
 * Create on 2019/10/18 11:25
 * function
 */
@RestController
@CrossOrigin
@RequestMapping("/top")
public class TopController {
    @Autowired
    TopService d;
    @GetMapping("/show")
    public List<Top> show(){
        return d.show();
    }
}
